/*
* jlb
*/
package com.jlb.jlb.entity;

/**
 * 金兰宝矿石转账记录 的实体类的状态
 * 事件：转账 Transfer，复投 Re_Cast，押金 Deposit，押金返还 Deposit_Return
 *
 * @author jlb
 */
public enum JlbOreLogEvent implements java.io.Serializable {
    Transfer("转账"),
    Re_Cast("复投"),
    Deposit("押金"),
    Deposit_Return("押金返还"),
    Purchase("购买矿机"),
    Upgrade("升级矿机"),
    Re_Cast_Miner("复投矿机"),
    Recharge("充值"),
    Deduct("扣除"),
    ;

    public String val;

    JlbOreLogEvent(String val) {
        this.val = val;
    }

    /**
     * 根据状态名称查询状态
     *
     * @param stateName
     * @return
     */
    public static JlbOreLogEvent getEnum(String stateName) {
        for (JlbOreLogEvent jlbOreLogState : JlbOreLogEvent.values()) {
            if (jlbOreLogState.name().equalsIgnoreCase(stateName)) {
                return jlbOreLogState;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.name();
    }

}
